Completed documenting all routines