fixed inline functions, updated README