Updated build_component.py 

Removed the tree functionality and certain unnecessary comments