Added rstruct + tests.