Add tree publishing.

closes #15