Commented and checked all programs