Implemented requireArguments in public functions

These now all use the standard mechanism for complaining when a required
argument isn't given.