[FUNCTIONS] added getCmd function + syntax cleanup
[PLUGINS] make use of the new getCmd function from functions module to retrieve command method references