Implemented things that were todo and removed some GPU memory leaks.
Merge branch 'master' of https://github.com/sirXemic/IFS-FG