updating documentation
updating documentation
updating documentation and removing unneeded argument
updating documentation and fixing bug in size of returned value