Updated documentation and program comments.