move class defs to .R files
move documentation to be more roxygen heavy