Don't pass argv to main any more
Add output basename option
Write stamps to a datacube instead of using multifits