Improvements

- Fixed several memory leaks
- Improved "UpdateVersion"-class