Add language detection

It's not much but i think its quite useful :)