Updated class name and revised compare function

Rewrote compare function to handle comparisons of versions like
0.0.0-alpha.2.34.5