updated

added support for options completion, removed php code for commands completion.