misc code cleanup, and set Version to 0.2 as the next release will have $include and defined values (a major update)
Fixed bug in error line reporting for $include files, and refactors code and improves the UnitTests.
Removes empty output file if an aborted run creates one.