added case insensitive search
Fixed history on memory