added serial sensing
refactored code for loading and playing performances