first draft of document, mostly functional. only tested topRight orientation