added settings on init
Dynamic memory allocation! How exciting
make init/deinit more sane