Changed localhost binding to 0.0.0.0 to accept external connections as well.
Added read and write statistics and fixed some minor issues