Added a get_loglevel function, and microg2ppb