Added custom error page. Small changes and fixes.