Some code style improvements to the ANN module.