initial port to github.  Tree still doesn't appear to work