Added readme gen code, and fixed generator