Complete documentation

Although most are stubs...

Change around raw data frame, add tests