Properties

Added code to allow properties. Is not too nice as the reflection is not good.