Get all properties from class
using http://stackoverflow.com/a/1215609/443457
Fixed 42