Sugih's notes and fixed the stupid normal bug.