Fixed duplicated  log messages bug.
Fixed canonic_form method.
Renamed actions to operations.
Added initial unittests.