Added main filter function
Merge branch 'master' of https://github.com/Astvaldur/ES-Project-Spring-2014