Added save feature. Fixed dragging class outside bounds bug