Made Airy gain function a keyword option; added functionality for pointing files.