Add api command
Add more commands
Add serialport support
Merge branch 'api'