Learn fix

fixed some of the transposing etc in learning, problem previously showed up when connecting two populations of different sizes. also updated the scripts folder