Removed comments and useless print function

Removed comments, added error message, and removed debug print message.