Added filtering capability

#56
Can someone do this faster? This is a great feature, but i dont know if i made the best implementation... 
I'm open to suggestions!