adding unit tests to test model and view functions of Thought mechanism. Rewrote small portion of view code