added requirements.txt and fixed printing