Added some comments. Changed some messages.