added script on basic survival analysis and modified useful functions script