Fixed identation on the if statement.
NO idea why makefile reappeared. It's a ghost. Included a typedef.
Fixed warnings.