added token(s) retrieval function + tests + makefile for tests