Added some more documentation. Started writing vignette.