Updated DIRECTION definitions for debug program

Updated DIRECTION definitions for debug program so that they are
pre-pended with "DIRECTION_"
Implemented Filter Class

Implemented Filter Class.