added license
added more comments