Lots of changes.

key control, x,y position control for foreground, script updates.