Code re-organization, move repl and explain to utils/.