Updated readme
Better Variable checking