Make machine's constructor take a network file

This way I can run my tools on arbitrary networks.