- Added input file.
- Redid file I/O code.