Updated error format to parse ReferenceError
Fixed a bug when an exception was thrown in the "main" function
Fixed reading internal node files