Started integration, fixed some bugs

Changed all '400s' to gc.getWidth/2 to allow for use in different
resolutions. Added beginning of integration code. Still plenty to do.