various code/packaging cleanup

added license=GPL (provisionally)
now passes R CMD check
be careful with roxygenize -> Collate ends up with some garbage