p.s.: I remember converting the S Health app to a user app and wiping its cached data during my efforts to get it working, as suggested in the troubleshooting tips, but sadly this also failed. I also uninstalled the app once and reinstalled it from the samsung app store. Still it did not work.
I rooted my SM-G900H using Chainfire's method. The rooting went without any issues. After rooting I installed the Xposed framework and after installing Xposed framework i realised that the S Health application was not working anymore. I read some troubleshooting tips on Xda forums and they pointed towards editing the build.prop (not sure if I remember the name correctly) file. Upon rebooting after editing this file I found that the display resolution is completely messed up, the icons and the fonts have become very small. A reboot/ cache wipe via (stock) recovery/ factory data reset did not fix the problem. Any help will be highly appreciated. A screenshot is attached to this post.