Better names
Enable -Wall
Drop unused variables
Fix Makefile dependency
Fix memory management in input phase