Commiting both required functions
Fixing documentation
Fixing code