finished program, now adding comments.