Version checking now works correctly , some other small improvements