Added rename() functions to field and element. Minor code changes