added detailed program description to comments