Improved serial class
Better error messages