It looks like you opened the freewheel mechanism rather than just taking off the cluster. I'm not entirely sure that was necessary, but what's done is done.
Sheldon Brown has a very thorough article on the topic, including a part on how to put it back together. Dental floss, yeah, but tie it to a rubber band:
http://www.sheldonbrown.com/freewheels.html