- fixing main method and build.sh
 - removing extern C code
 - cleaning up includes
 - removing all warnings
 - adding gitignore
Merge pull request #2 from roman3017/master

Fixing main() and warnings.