Modified the code so that there are no debugging printouts and such and that the messages are more general, but doesn't provide the user with more information than they should have