Move definitions of serialization method to header file
Rename method of creating frame data