Added check to invert the barrier side depending on the currency order
Fixed curve definitions for bloomberg examples and removed some deprecated functions from Example function repo.