New char stack

Amongst other additions and bug fixes.