added some ttree, tbranch methods
added method to write branch