updating copyright, converting strings to gettext, adding some phpdoc blocks