Added I/O functions
Added kernel main
Added tty functions