Issue #1 : Use enums for filtertypes

Signed-off-by: Ah-Lun Tang <tang@ahlun.be>