Switch to hahmap for simplicity
Added a call to trim to prevent the code to setting the value to zero if
there was an space in the version value
Added code to calculate version ranges, which is to be used in
supporting dependency management
Added javadoc comments
Reduced method visibility