- added null values
- change dataoutputstream to dataoutput
- changed the datainputstream to datainput