adding trace functions for debugging purposes
adding support for testing multiple input files at the same time