Bug fixes to core and controls. Some new minor features.