more naming simplifications
renamed castedInstanceData to cid
removed unecessary blank lines