Improve the behavior of the package when attached

These changes reflect the suggestions provided by @gavinsimpson in #33.