Fixing wrong regexes for dict lookup
Adding error2Html proc to escape special chars while printing errors
Removing commented codes