added flags for GC diagnostics
rewrote a number of audio-functions using generator macro