adding some marshal funcs
adding marshal methods
adding marshal funcs for stat structs