added feature to output debug printfs to a log file instead of the screen
updated gitignore
fixed minor bug with cursor x/y computation
renamed the screen* stuff to display*