Use ag for searching

Also some comments.
Remove unused functions

And move a mapping down to the mapping section.