Added some comments and bugfixes