Lots of small changes to idf; added new version of gem subpackage.