Improve properties reading

Solve https://github.com/numenta/nupic/issues/1102
Suggestions were applied.