added license header, makefile fixed.