Parameter decoding

Added proper parameter decoding from query string and a test