Added a lot of functionality for simple lattice search.

Corrected a few typos.