made some drastic changes to analysis section
small changes to section 3 and 4