added new script to align and build a tree