Instead of returning annoying error codes it is better to follow the exception mechanism of the Serial class (this follows from #17).