added utils.foreach() and utils.nicely() functions