add license and minifix