updated README with examples, added functions for getting different datatypes with val()