Added debug information
Fixed filtering for filtfilt. Added tests