added commands for complexify and random complexify
added a 'last command' buffer for terminal, activated by up arrow