Added all function documentation