ruby generator updates: now it outputs methods documentation, some code clean up