Basically done version. I will be workong on GUI..

Signed-off-by: tianyuli <tli@wpi.edu>