Tested and fixed stupid mistakes.
Added -Wall and -Werror options