Fix DocBlock and variable names

Also changed this in `getDictionary`:
```php
$items = is_null($items) ? $this->items : $items;
```
so that it won't use the current instance's items when passed an empty array.