Added location and alpha implementation.
Changed graph to be exported.
Fixed up some of main logic. Problems as far as the eyes can see.