refactor PageGenerator
refactor parse_configs and add unittest
add docstring
Modify init site

* refactor initsite class
* add a default page when init site