doc: cleanup internal documentation and naming