Added ability to specifiy an extra file to input, and to output console to a file