Removed traces from AudioSystem. Added better typing in a few places.