Added serialize functionality, but not yet AI. Package structure redone