Change name and fix attribute of Synplot function

I changed the function that saves the spectrum into a file. I changed
the name, so it is more clear now, and also changed the attribute *args
to **kwargs.

I also adapted the test function.