remove io functions from vga module and add to io module. (closes #4)