refactor object. add tests for dafile related operations. add tests for restructure action.