Renamed some classes, moved serial message handling to separate class.