Added docstring for all the functions