refine class/file structures
basic user main and delay() func works.