updated documentation (field -> variable, sub -> function)