Don't worry about the wiring. This was my biggest worry, but turned out to be much simpler and more satisfying then expected. Best thing would be to rip it all out and start again rather than try to understand someone else's logic.