You adjust the motor on the base slightly then also adjust the sprocket on the double nuts to get chain to line up correctly, just take your time and go by look and feel when spinning it by hand.
As for wiring it up, very simple one feed in from power sauce and then one wire out the other terminal, there's about 2 terminals on each side isn't there top and bottom, put each wire in and out on the same side, if your not sure just use a multimeter and set it to continuity while you check which ones to connect to!!