fixed case of encodinganalog; #243 returned materialspec to did