restructureing the doc dir and adding more support for clean document generation