Added rwstruct and makefile