To me it sounds like your doing things the wrong way round. First come the specifications, then the coding. To put it another way, 90% of programming activites is documentation - specifcations, testing logs, help documentations etc. The actual putting some code down is a very small part of it. Your doing the reverse, your trying to create documentation from what you have coded. This will not work on at least two fronts. First you can't test the code, as you only know what it does, not what it should do. Secondly change management, changes will never be captured as the documentation always shows what has run, no comparisons.
To be honest, if your metadata (specifcations) is robust enough, you don't even need to program, just generate the code directly.
... View more