Added comments (2 langs) to all functions in analyzer module, fixed most bugs in autotests