improved errors, added stylesheet