fixed bugs in save/load, connections. Changed pinmodel