Improve header generation when using --api flag

* Add support for the @alias tag.
* Include parameters for functions as well as methods.

Thanks! :)