added more error functions, optimized when the error functions are called to speed up ...
still not sure how to do the iterations over the feature weights...