Fork of Erik Rosolowsky's IDL generation code