edited if statements.
just DEBUG
Added firsrt unittest.
Basic tests and some visual changes.
debug false