added example
added usage to README
added getInfo function for middleware loading