Adding repoid filtering and unit parsing to applicability manager, cleaning up code, docstrings and updating unit tests