Remove debug printlns
Reject requests with not all the right parameters.
Add test for malformed JSON.