reorganized dir;add data extraction, conversion and learning code