Several useful changes

Changed the processing of included fuiles into a recursive function for more useful error messages.
Added a linecounter for more useful error messages.
Added some simple helper functions.