Fixed praseInt -> parseInt typo's
Fixed lots of typo's and logical errors