Added class code
Updated docs
Added grunt
Added tests and fixed inheritance
Function tests