Convert filter to class. Closes #27

Signed-off-by: crynobone <crynobone@gmail.com>