Code cleanup.
Refactoring.
Added site analysis mode with max pages count constraint/