Almost working file opening, few problems with saved values saves at wrong scales.