generate step fixed. Inline Documentation improved.