Fixed generation of dependencies
Licensed Makefile and added README