removed extra printing/ comments, added Mode()