Library of misc. functions for erlang