Changes at both levels of filtering. Comments in code
Added mechanism for saving .mat file