Libfcg

- Continued to implement basic optimizations
- Bug fixes