added parameter decoding, Request constructor now parses params