update docblock, fix typos, improve composer.json

There is no longer `$key` attribute in this class