Added generation of b4_ttype array, like stype array but better
formatted.
Reordered functions to avoid forward declaration.
whitespace change
cleaned up unused variables.