Fixed some bugs. Added debug messages.
There is now code for audiofile loading