added the utiltiies file.
Contains some general utility procedures.