Updated exit codes and documentation