updated comments, added license/copyright info.