reverted changes to master branch and added R source code to pygamlr branch