14.10.4 9:27am

Cleaned up initialization and deinitialization a little bit
Added delete functions in the factory. It should work, but needs testing.