changes to documentation, added support for const methods so that they can also be exported