Add priority queued scheduler
nothing significant
fix previous commit
returns fixes
test program changes