Added error pages, and minor changes.