Cleaned up a lot of code. Added command line file loading.

Added comments, and lots of general organization. Some refactoring of function names, mostly done in MemWnd.

Last argument is the path of the obj file to load.