change internal design of mainly documentor.py