Fixed another error that dev version of tsc complains about.
Added more JSDoc's.
Added a jake task to generate API documentation.

It parses the JSDoc comments using UglifyJS and generates an XHTML file.