added default input and output formats for REST
updated docs