Move a utility function to Codec.IGC.Utils
Add doctest
Add hspec