Added tests & docs