add serial class to control serial connection

Signed-off-by: Andrea Corna <andrea.corna.ac.91@gmail.com>