Adds license and fixes spelling errors in comments