Added comments, more helpful messages.