Added term.clear and string.join. Fixed a bug in modules.