Gave some documentation to the code to make it easier to understand

Have some documentation to understand the library