Changed console messages and meaningful comments.