Added correct commenting for clarity

Defined the GET and POST requests