Added documentation to new routines

Added documentation to new routines