Libfcg

- Refactoring