updated .gitignore
undef min/max on Windows (d'oh!)
moved console code into cpp file, testing