Implement NSUserDefaults

Also here, get rid of this rather than comment out.