Rewritten generator
Added rst files
simplified logic. Extracted rst discovering functions