Code style
Code refactoring
documentation
added global vars injection into dom