added build trees and get methods to story.py