Refactored core command runner method and command funciton pointer
args to take buffer and buflen argument. Next: review test
cases again and re-run.