Libfcg

- Continued to implement basic optimizations
- Cleanup