refactoring add_item.cc and remove compile warning in makefile