Add old cad.c (version 1.0.2)
Add .gitignore
Rewrite cad.c and add VS project files