Added comments to c and perl