Add comments to lptype and diskdev logic