Added ability to set minAccuracy.  Cleaned up a bit of code.
bump