adjust range after guessing incorrectly

improve comment format
move things around