Fixed some bugs in the euclidean loss layer.
Further fine tunin parmaters.