getting serialization working (50%), fixed some generation bugs, implemented some basic core stuff