change style and fix bugs alarm

Signed-off-by: Dmitry Konurov <dmitry.konurov@opensoftdev.ru>