Deleted initialization of scan mode. Only used once so no need to make a new variable for it.
Initialize the filter directly instead of initializing the builder first.
Merge pull request #66 from g-ortuno/small-improvements

Small improvements