new sample scheduler/executor, bug fixes, refactoring, and documentation update.