Storing types in variables.
Check against variables instead of strings.
Added getAllPropertyNamesOfClass.
Added SimpleExample.
Updated readme.