converted code to c compaient; 1 warning left
updated gitignore with vs files