founds errors and fixed makefile