Cleanup and general improvement

Improved or removed comments. Removed getMapColorIndex function and
replaced it with a numpy ndarray. Added check that wallmaps are against
a wall.