1.1.2: added support for readonly state
Merge pull request #4 from DeWenS/master

1.1.2: added support for readonly state