Miscellaneous fixes.
Added sound enable/disable switch.