updates to add granularity and state selectors, export functionality, and series