removed some comments and added license