Fix PHPDoc and typos

Some things my IDE complained about while creating a custom backend.