Fixed bug with socket reading nulls into buffer view.
bug fixes and logging.