More documentation

Added descriptions of each function.