Finishing ASCII mode and fixing bugs