Added input_masks() method to world.py
Committing hack to old code so that I don't have to keep git stashing it
Made structure_probabilities parameterisable and fixed the way code deals with 0.0 error values.