Version 1.4.2 or higher - another small refactoring

Mainly using "new" and "delete[]" instead of malloc() and free()