cleanup, treated warnings, etc.
added: working Makefile