Ref model 1st revision
HTML mending and code clean up
Merge pull request #15 from darold/refmodel

Merge sugestion from refmodel branch to master