Bugfix and validation check for APMatrix
Bugfix
Added javadoc
Localisation belief can now be reset to uniform
Training done training set rather the whole
Optimisation and logging