Added automatic language detection and simplified usage