basic scrolling and scaling of the main view
misc fixes; document saving and loading seems to work