Added a license and some comments