Added functionality to inform the user if something went wrong

Check the changelog for the change. Basically adds the function verify(pError type) and prints out the appropriate error type if requested.