Added some comments, now also prints whole number