change citation to entry for clarity
better tests and refactored code for citer, bib and output