Add RWStruct and makefile