Some refactorings to implement ctor
Added 'external symbol' table to core and fixed coredump