Incorporated some small changes from fann

Critical is clipping, but also weights need to be between -1 an 1