function for calculating origination and extinction rates and appending them to pre-existing stats file