Starting to add inverse functions. Realised there were redundant subword functions and removed one of them.