More code comment documentation
Coding style
Bugfix primary language check and added more code documentation
Added more documentation, hooks and implemented basic functionality