refactored __set to be less complex
Merge pull request #7 from poef/master

refactored __set to be less complex