Restructure file and code.

Refactor libMpc code.
Solve problem with File model