If you don't know what you're doing and why you're doing it, maybe it's best to ask a professional to do it for you?
Or read this, scroll down to "headset assembly" and then "headset adjustment, threadless type":
http://www.parktool.com/blog/repair-...eadset-service
When you took the topcap off the stem, there should've been a 2 to 3 millimeter gap between the top of the stem and the top of the steerer tube. If this was true, then when you moved all the spacers above the stem, then the same gap should've been present from the top of the top spacer to the top of the steerer tube. If not, then your fork must've dropped down a bit at some point and you do not have everything assembled properly. Don't ride it until you have it properly assembled and the headset properly adjusted. You could ovalize a metal headtube, crack a carbon headtube, break the steerer, or even break your teeth or face. Ride safe!