add docs for searchning
formatting
cleanup