BOOL type added
...refactoring

Signed-off-by: Yakov Goldberg <yakov.g@samsung.com>