Add extensions for easier Unity integration.
Adding some comment and code contracts.