Added docs
Added tests