add .gitignore to project
Port some C macros, remove unneeded MIN/MAX
Rename *globals* per Lisp convention
updatenumlockmask; using unit lolevel
misc. cleanup
imports re-arranging
-v message