Added languages to preferences
Almost done making general code style fixes