Distribute out pair_present
Localize variables and added const
Cleaned up warnings
Cleaned up warnings. Added messages about memory usage
Cleaned up warnings
Cleaned up warnings. Removed no longer used code.
Cleaned up warnings
Cleaned up warnings
Cleaned up warnings
Added additional warnings flags and clean up routine