remove the equaldistance code warning, replace with doc warnings
typo fix
remove warning
warning removal
update warning box
deprecation warnings, indent fix
andys suggestions and test