clean up format, added license