Some errors in code rectified