Ugly code: finish basic functionalitis of neocortex