Refactored file processing.  Changed exception handling.