Added training data and optimization classes. Added Network R/W classes.