more file breakout
update Makefile to use new files
export get_distance function
pull in some ompi-specific stuff