Add a function to cal_tools, which returns not only calibration constants but also a metadata. @amunnich @qingtian