cleanup and comment
cleanup
improve taghandling
improve rendering
improve maplayout
improve userinterface