added asdoc generation and embedded documentation