removed intentation problems from gracelib.js
fixes to line numbers and generated code format

Also added errormessages.js to list in included files