clean up readonly interface, and settings.
Minor code cleanup.