Fixed failed merge for LD1, added comments to LD2 C code