Fixed bug in opening mode of output file
Swapped semantics of feature filtering keywords- these were meant for excluding features rather than for including. Added an extra option that keeps all features