Save previews now working. Various bugs fixed.