Add test input file
Add error check on stdin read
Standard input working
Cleaner output