changed serialport datareceived method because of an exception, this is still an unresolved issue at the moment.