Added warn(), fixed checks in hist, added rest