changed id to _id
Modifications on names, based on code by @lwille (http://gist.github.com/lwille/4d79e7baaddab5b220fc)