reorder functions
ifndef -> ifdef
add initial neighborhood information base