added a debug option (set with ->debug = true) to output request and response information