More comments

Added a few more comments inside the code for readabillity
Changed tabs to spaces