Added documentation.

The documentation is done by a bunch of wrapper functions. The platform
specific functions are now unexported. Replaced by their respective
wrapper function.