Improving genconfig script

Small refacoring and documentation
Documenting the repository

* The purpose of the genconfig script has been added as a comment.
* A comprehensive README explains each component and the workflow.