added subroutines for map selection, changed error reporting mechanism to be less repetitious, and minor other stuff
fixed solid shading and reformated few things