Fixed comments and added license