Added data serialization and cfg file management