This is just the initial copy, roughly edited, an tested only for some of the fundamental actions. TOC and cross links are not even considered yet