added separate resistors for first / last node, added transistor option atop optoisolators