Commiting both required functions
Fixing documentation