added getRestrictionFragments function

Includes adding a dependency to handy.R