LD calculator and small updates