Added NBDataInputStream
Fixed bugs