Updated tfhd

updated tfhd to have a write method