Added some comments and removed bottom part