Add a logger

Add logging to provide error output to start, may have more use later on for debugging.