added some documentation in programs