[model] implemented flush method [closes #16]
[model] fixed staticModel