Fixing several memory leaks.
Fix projection
Adding console