Module separation into state and docs