added packets submodule, added gen script