generation from scratch, renamed to x3doc, added base folder, comment fixes