cleanup/organization of oplsaa; factored out neighbor checking function