Implemented HardwareSerial and Stream

Please move the function implementation to the c++ file.