added a readme, made logic changes