added debug symbols and warnings to compile flags
auto select map size from diffuse image
whitespace
fixed Wreorder warnings