- turned chat functions in to a module
- including static files