fix transaction handling with test case
fix generated-key issues
update doc - generated key retrieval