Reorganization and basic mod code+Reference