code for learning curves, and some reorg
Reorg directory