tweak style of error pages
add comment for methods