fixed compiler warnings.
code cleaning and function reshuffling.
added tracking of \include and \input macros.
fixed dependencies.
fixed input/inlcude tracker.
added tests for inputfiles.