added vga terminal routines
bugfixes to get to vga text output