'for-in' fixed?

* % operator fixed
moved members in and out of protype in a more correct way