fixed doc strings
Checking for POST method is done by flask. Check if request.data is empty.
added some unit tests