move error checking code into header file
add FIR filter example
add example-specific ignores into separate .gitignore