updated readme. minior updates to code. mainly comments and style.