Add some documentation and ensure return is json