Initial commit of source.  Utility functions.