Adding initial version of tb for the w memory.
Syntax error fixes.