General cleanup, documentation.