Added comments to utility functions script