Added documentation
Added tests