Organized and Refactoring done (part)

1. organized the code according to Gem.
2. basic feature implemented (list_artifacts, export, and import)