Added code comments and Code fixes

Added code comments for methods.
Modified the resolve method to include invariant culture comparison