Adds support for REM units as initially added in PR #109
Fixed reading of base element property
Added ASSERT check for recursion error and minor code cleanup
Whitespace cleanup