Adaptive switching frequency and some bug fixes