added detectCores and some notes.