Pynnsynapses added and some bug fixing