Bootstrapify button.
Fixed some docblocks.
Corrected function name.
Fixed error introduced in recent commit - also check the value of $readOnly and not existance only.
Merge pull request #1849 from cmfcmf/minor-fixes

Several minor fixes