Changed some things in main.py, renamed to piqa.py. Allowing the simulator to be run inside a function so calling it returns the energy/config we want. Makes it easier to run large numbers of simulations using a wrapper script.