Added functionality to automatically fill the count of functional groups in IEA segment.
Version bump to 2.2.1
Regenerate gemspec for version 2.2.1