Added Matlab sensory state visualization tool, fixed bugs