Changed addData return value

addData now returns the number of bytes added to _params