Updates to the executable.

Added proper status codes and more helpful error messages.