Started using new methods to calculate mps from planet buildings.  Now comes the hard part of mining resources automatically too :)
Now calculates how many resources to mine each second as well.