Added core functions  to store and read node lists and find a free id.