added api support for various languages
fixed indention maintenance