Removing some compiler warnings; unnecessary const usage.
Fixed unnecessary synchronized block for toggle().
Reducing footprint; help compiler remove unreferenced function/data.
Reducing footprint; help compiler remove unreferenced function/data.