a range of bug fixes on sounds and settings.  Tidying up code and