code overhaul according to : https://github.com/icanzilb/JSONModel/issues/8 + cocoa coding guidelines