I think I have sorted out most (all?) mathematical bugs in the program. If you find one, please tell me.