Implement / add examples, also fix some pre-processor issues