Adding lib folder, tidying up SoundGenerator.