Fixed maps to consume less memory
Major cleanup of code
Merge pull request #3 from minecrafter/master

Performance optimizations and code cleanup