formatting changes and fixed static methods bug in lottery sched