Bugfix, improvement

Fixed bug where length property was undefined, made some improvements to the audio handler.