changed nirc2_coadd.py from a stand-alone program to a library