Added log levels

Added the ability to filter what is logged by choosing a log level. This
closes #3.