fw #21: fix c-lang errors
fw #21: almost work, need reorganize flash module