better readme, added comments and connect middleware