Data object encapsulation

Started encapsulating Darren's matlab variables into classes.