Documentation added for the code to be more explicit