Add opster for command line argument parsing. Add helper functions. Add methods for saving and loading network to/from a text file.