Roxy - to clarify, iras doesn't know or have a copy of what is installed on the printer. The configuration.h file given is an attempt at starting to prepare a marlin build, suggested in another thread.

Iras - do I have that correct? Also, one thing you could do is look into using the M119 command to have the printer return endstop status as you're moving each switch. That would help clarify how the printer is set up. For example, even though the x endstop is connected to x max on RAMPS, the firmware could be set up to use that as the min input.