Adding comment blocks for dilineating public/private functions and constants
Moving request handling code into it's own file