Refactored networkAnalysis.js to work with changes made to the data structure of the network data base and the new file genFakeData.js.