Folded valueOf function into the main class to avoid namespace conflicts.
Removed require_once line for deleted functions file.