added language selector; also more UI and memory improvements