readAncestralStateTrace function now working