MDS-20140820

Update src code:
1. Periodical computing
2. Refinement