Fix bugs
Delete coments
Corrected by Slavik's comments
Delete comment
Some code refactor
Corrected by Yura's comments
Merge pull request #163 from if045/KM-tech

Km tech