moved internal functions out of if/else block into dictionary;
refactored _compute_hidden_activations into BaseRHL
elm module docstring tweaks