added documentation files and comments on the code