REST documentation
#6 Added tests
#12 Added tests