Updated exceptions code, added functionality to check and ensure output file has .hc file extension.