Code cleanup
Unit tests on the processor