Version accepted by CRAN

Lots of platform compatibility changes
Merge branch 'master' of https://github.com/aykutfirat/MedSTC-R