update README.md
inline some frequently called functions