Refactored scheduler.go

Export interfaces.