Added code for 404 view.
Updated comments.
Updated comments.
Added code for 500 view.