Fixes for InputReader and test, both now functional
Added file close to InputReader destructor