Documentation and slight code tweaks
More packet validation