function and api documentation completed more or less.
documenation pretty much completed