Multiple changes

- Updated the ClientContext class.
- Added missing sampler function implementation.