Improved h calculation algorithm

+ better looking laser ruler