Sound class and improved debugging messages