Fixed indentation and README.md

Indented getPropByString function code
Added simple dotted object example to README