All the other functions I wrote
Many of them are outdated

simulate_2df.py contains a lot of information