clean code warning and fix mirror bugs
Merge pull request #35 from s3lsensor/yzliao_v0.2_cleancode

clean code warning and fix mirror bugs