Make distinction between profile and config
Improve and test network file handling
Stop using argparse.FileType