Added license and readme. Also added some comments.