Check if language was determined
Add some doc comments