Clean up smvgear; Modulelize the code into 1) Data; 2) Core functions; 3)Interface