Added legal stuff and comments