Added stuff to the main. Most of the way to working. Updated .gitignore ...

...to ignore CLion files.