added some comments and var lists