Added tests for new generator. Updated embedded docs.