clean up and add comments to  views, add custom 404 error