Added makefile + fixed warnings