Changed 'sample' & 'data' to 'object'

Resolves issue #25