Added some comments and refactorizations