added functions to end experiment gracefully and print notifications to screen and via pushover. generally improved error handling in all functions