Added rig factory and serial test project.
fixed data contract