Added some comments and fixes