Added filtering by type

The reader will now choose the correct method to filter based on the
input in the settings-file.