add sampNloc argument to getSamples method #17