Modify replace-doc command. Add ability to dynamic creation of docs section or single doc if it not exist yet