Basic workings are correct: reading from keyboard.
Fixed several bugs. Now reading correctly from multiple files.