add deserialize

add inet4 deserialize, inet4 serialize not implemented but current functions correctly