Added tests
Added missing documentation