some code refactoring
add docs about rest features
add rest features
use zero json spaces for testing
add tests for rest api