change generatehtml to node idea

The generatehtml.py only convert each node to html.

That's why I split off function to create table which has parameter and another meta informations.