[DF-1294] Added ruler tool. Fix some warnings