Furthur progress with writing phyxml interpretation function.