Improves naming of files, and some chat functions