added missing variables
completed phpdoc for generateRecurringEvent()
moved sync plugin to the bottom