Removed a comment.

I'm pretty sure flask already does what the comment is suggesting.
Added a docstring for api_function.