update documentation and make some constants private