Refactored the project so it can be run at a module level. Created a Network class to store factors and made main function work with command line arguments. Modified README.md to reflect this.