Fixed an issue when variables should have been NULL, added readme