fixed undefined error, udpated readme