Added some comments inline