changed structure, added license