Add FORPI first version

Note: still under development. Several known issues.