Added some more exit codes. Also added default log file.