IO added. Classes made serializable. v1 of classes done.