rewrote selection and moving a bit; primitive save and load;
fix lines linking