Added Investigate menu, no more manually preparing filter, prettier error output, check for existence of all of filter attributes before preparing filter, only prepare filter if state has changed since last preparation.