Updated makefile for better compilation.
Added license.