#79 fix initialization problem;  remove debug code,  restore tests
#79 fix initialization problem;  remove debug code,  restore tests