added year standing function, updated main schedule alogrithm with proper range and index variables