Small style fixes
Cleaned language function and fixed its scan feature