fix a bug in Earth init
add TODOs, fix NPP syntax stuff