some codestyle changes. turn some magick values into constants.

serrox <serrox_at_ya.ru>