cleaned up memory, fixed share button bug, changed approach to TITreeArray