const treewalk and getwidth, kill memleak
angle distribution and monte carlo
play with potential log streams