added more documentation in the code