Added MAJOR, MINOR, and REVISION constants.
Used split instead of pattern.
Added the root cause to the exception.
Added comparison methods.
Merge pull request #1718 from davebaol/version

Added MAJOR, MINOR, and REVISION constants.