Fixed bugs. Added default 404 page.