Add frequency option

closes #3. seems to be feature-complete, but could definitely use some refactoring.
Much cleaner! :clap: