added docs
added json type
improved readme