Parameterized some hardcoded ports and relaxed some assumptions about where the NN and RM are located with respect to each other
Bug fixes