Revert 67191e8..902db49

This rolls back to commit 67191e87f9e218ae138ea7c2d678bc2b1c0ec182.
oops again, fixed object file and added a few comments, onto error checking