Added code

Added banner, exit code and error-checking