Add more flexibility for script for adding keywords to a fits files.

Also document and test that flexibility. Closes #140