Now completion commands are only returned if the typed prefix is a substring. Also removed trailing whitespace.
Completions now only show up for PHP files.
Fixed merge conflicts with updated current code.