fixed variable types for f value calc
cleaning up some fprintf warnings about wrong type
disabled buttons for altering the world when sim is in action