File and console logging added for exception handling and information