revise and add editing; using a new npm pkg, still WIP, needs cleanup and docs