wrapped TeslaCommand program in a function
Merge pull request #14 from echen027/master

wrapped TeslaCommand program in a function