make graph code compile
add trees and graphs to docs
some documentation fixes