Some debug prints added, conditional compilation added

Signed-off-by: Bleska <blecha.jiri@gmail.com>