very minor tweaks
added comments.  changed ips so it receives payload instead of full request