More robust sound stopping.

Also cleaned up documentation.