Apply patch

1) Fixed String comparsion issues
2) Changed usage of SHA-1 to SHA-2
3) Removed Version class