added averageLoss to examples
Merge pull request #80 from matley/fix-aal

added averageLoss to the examples