Change code from using public fields to read-only properties

- did not provide setters to make them read-only

Signed-off-by: Stefan Marr <git@stefan-marr.de>