made results array size 4 instead of 81
changed comments, fixed one if block for code standards