moved ip var to function, updated README