Fixed some bugs with uniform compiling but have run into others.
Too late tonight to work anymore, sleep time!
Example 1 worked though so i'm chuffed!