Added displaying of errors to the user. Closes #2.