Adding more documentation to each function