cleaned up file code and began work on tile map loader