Fixed error for 100 and added commenting

-Fixed faulty array value for 100
-Added commenting to document code purpose