fix ledgerbil handling of scheduler; rename some local vars in ledgerbil; remove some commented out code in schedulefile; handle schedulething first thing