Center function is more flexible; adds more tests

Fixes #2; also, upgrades to Roxygen 4.0.0