Add type annotations.
Fix node size calculations.
Remove debug info.