- fixed serial event loop
- added command parser
- refactored process data main loop