finished writing example, fixed bugs
added print function to PointTree