I haven't done this myself yet, hopefully someone that has done it will chime in. I know there's a good guide somewhere around here.
Just wondering - did you take the timing chain tensioner out before you pulled the head? If not, you'll have to reset the tensioner.
The cams have a square block machined on their back end. BMW makes a special tool to lock them into place, but you can use a pair of adjustable wrenches to do the same thing. As long as the cams' machined surfaces are level with the head cover, you're OK. BMW also has provision for a lock pin on the block. When the motor is at TDC, you can slide a BMW tool (or a small hex key) into the flywheel to prevent the motor from turning until you've completed the timing.