updated README examples
renamed function