added recursive processing of \include and \input statements.
added prefix argument for output files.