adds full audio module
Fixes bug in waitEvent
makes macro better for error reporting