minor fix and now writing document and generation tools.