documenting routes and main