modularized the code for getting the diameter entries by year. built in the status of the tree based on the notes associated with the tree