Cleaned up calibration code, decibel meter functionality added.