* comment and refactor wiidget class
 * template processor refactor