rename function
write docblock
refactor
simplify unpacking header
refactor
simplify of reading object content