split modules into different files; network now fully dynamic
deleted stuff copied from analysis.py that isn't needed