Add Makefile

Signed-off-by: Nicolas Dechesne <ndec@linux.com>
improve debug messages

Signed-off-by: Nicolas Dechesne <ndec@linux.com>