ParseSignature extended to also parse contexts, new functions exported for subsignatures and normalization