wrote some lemmas and tweaked some things to make them more readable
merged one minor change