fixed issue and added notes on exit codes