Updated Makefile and added deps.mk for dependency tree.
Added -Wextra to compile flags.
Code cleanup (for loops in C99 mode specifically).
Fixed -Wextra warnings (comparison between signed and unsigned ints).