Added additional WP comment to main file and replaced anonymous function.

- Added date comment to main file.
- Replaced the main anonymous function with a named function.