Fixed bugs (memory leaks, etc...). NOT TESTED