Added tests for haskell functions
Added documentation for haskell functions