Audio Unit changed so pause works and error debug method added so it is easier to use.