small updates and a bug fix

Signed-off-by: Delian Delchev <delian.delchev@gmail.com>
A lot of bug fixes to the network stack

Signed-off-by: Delian Delchev <delian.delchev@gmail.com>