Add license and fix whitespaces