fix and refactor
Refatoring around builder.py and nodes.py

Move TextNode class from builder.py to nodes.py.
refatoring and docstring update in driver.py