Added readonly function

Separated readonly and disabled settings. Basic implementation. If disabled already, cannot switch to readonly or vice versa (why would you?)