enable/disable method and tests. Closes #17.