all files commented; added redirect function to router