Documentation update: added architecture documentation; fixed bugs in documentation; extended doc generator to support custom headlines