update

only comments on stuff not understood. will do more later.