added error gem, and edit comments