Add main functionality for sample playing/switching