Improvements

PHPDOC comment-style added.
And an warning issue with the date function was solved.