Added #val to retrieve latched last message output by node
Tests for #val
Updated