added liq level functions, changed main liq level function from void to int and returned liq level