Added commenting and parameter checks to the request controller