put all analzing to module, cleaned code, rewrited comments
more simplifications
Merge pull request #24 from daddyz/refactoring

Refactoring