added basic functionality (and tests) to handle wordlists