Minor fix to get the palay program working too

And some other stuff, but the main thing was to expose saveAs since palay was calling it. I didn't have any great ideas on file extensions, so I chose `.palay`, but it could be something else too.