Added neig function, readme updated