Shrihari:Added code to read and write pain scale