HTML Markup validation phase 1
Fixed still more after effects of illconceived merges
Partial markup validation + fixes
Redone code which vanished after commit 65dbb2909b
Incorporating arthasdk's minor changes on naive algo and globals into develop
Merge pull request #9 from spikey360/master

well?