updated AudioEngine and beat class