Language detection

Added feature to detect language (to a certain extend)