add object conversion
add cocoa module
split out foundation imports
tweaks
clean up main file