working on warnings some more
better makefile