added license and fixed whitespace