Finished main documentation and made some according changes to the API. These are not tested yet.