Added feedback when searching.

Also added some javadoc comments.