made a few changes to BaseResource class
Merge pull request #753 from simonjenga/BaseResourceChanges

#753: pull request made a few changes to BaseResource class