add appInfo module
move serialport out from class