Added some new API methods, like getLanguagesArray; Also added little refactoring.