Fixed bug in test page
Added inline documentation

Added inline docs for templateString