Bunch of changes, all code is now fully C.
Cleaned up useless stuff.
Merge pull request #1 from yeerkkiller1/C++toC

C++to c