Fixed bug where length is undefined, improvements to audio handling
Merge pull request #47 from Earth4/master

Bugfix, improvement