Refactoring and cleanup

- Updated several examples.
- Fixed header includes.
- Added Buffer::BindRange.
- Work-in-progress, some parts won't compile.