Fixes
Shared variables access checks
Work on code gen
Code generation working again