Added tests for 2 and bit of 3rd parts.
Solved bugs with doubles and logical operations.
Small enhancements of UI.