add license, add comments, change input type