Added filter string support
iPython notebook for tests
Made averaging code compilable ( not functional)