removed dependencies: igraph and foreach

These are only required in specific circumstances, and were the result of some persistent warning messages, and even an error when working on the hpc (this will be tested with new dev version).