moved AudioTest to separate file, cleaned up main loop