Added #ifndef #endif to headers
Rewrote a big part of the code. Fixed memory leaks.

Didn't rewrite everyting yet. Also identified some invalid
reads and writes, which i didn't fix yet.
Created simple makefile
bin/ in .gitignore
Moved some stuff around
Should check result of strdup for NULL
Fixed warning: control reaches end of non-void function
Fixed warning: implicit declaration of function ‘ftruncate’
Fixed invalid reads/writes
Removed comment
Tool is now usable again

... without memory leaks and invalig reads/writes!
Merge pull request #1 from boyvanduuren/fix_stuff

Fix stuff