Fixes a bug where the correct response code could be overwritten after the correct route is executed. This would cause an error response code to be sent to the client even if it should have been 200 (SUCCESS).
Also added comments for all methods in the src/
directory.