Improved the MapValidator.
Refactored code into seperate files.
Moved errors into a seperate file.