Lots of refactoring.
Code cleanup, refactoring.
Removed a seam from the map images.