fix some bugs; add WorldObject IO

Signed-off-by: anti-freak <antifreak2011@gmail.com>