Added comments

Some comments were not present for the stored procedures and functions. These are now added. Those comments for functions have been added in a way that they may be read within the DOCSTRING