made modules of models, added favicon, better error handling