add a lots of markup for design and do some bugfixes
add scalebar template
remove position attribute, remove element stylesheets, do some fixes
remove lots of nonsense comments