cleaned up code
cleaned up code, added sample output to comments
added sample output to comments
added sample output to comments, rearranged if statement