Documentation cleanups in dock and continue refactoring