add chain

will slowly reduce external dependencies to prevent namespace or other clashes. Starting with adding chain internally so doesn't depend on the user manually loading dplyr/magrittr.