Figured out why I couldn't use functin compisition in loadDictionaryWords. Operator prescidence/argument order.