Update .gitignore

Add .o and .o.* files to .gitignore file.
Refactor Code

Make minor syntax updates.
Create src Folder

Create an src folder and move all .h and .c files to it.
Merge branch 'upgrade'