read below

updated scheduling algorithm
other small fixes as well