refactors bin
adds test and refactors core to support ignored words