Cleaned up Identity class internals a bit.
Updated version to v0.5.1