doc fixes and error pages