simplify code

The server process won't download ISO language files
simplify and refactor code

Move functionality into separate source files