Would that docking was as easy as undocking ...

Undocking : CTRL-D, back off a ways with linear thrust, you're good to go.
Docking: Match orbits, match velocities, accelerate to near station, kill velocity, rotate, accelerate, turn, thrust, match,
turn, thrust, match AAARGH!
at least it's a good way to teach yourself patience.