Exit with either success or failure. Print some logs. Fixes 55

Added exit codes and printing log messages.