handle route method broken up to several methods, comment cleanup, format cleanup.